package com.wl.dzt;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description 系统应用
 */
@EnableEurekaServer
@SpringBootApplication
@ServletComponentScan
public class SysApiApplication {
    protected static final Logger log = LoggerFactory.getLogger(SysApiApplication.class);

    /**
     * tomcat启动方式
     *
     * @param args
     * @return
     */
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(SysApiApplication.class);
//    }
    public static void main(String[] args) {
        log.info("系统Api服务开始加载...");
        SpringApplication.run(SysApiApplication.class, args);
        log.info("系统Api服务加载完成...");
    }
}
